import 'dart:async';

import 'package:flutter_reactive_ble/flutter_reactive_ble.dart';
import 'package:get/get.dart';
import 'package:ty_smart_watch/page/device/connected_device_list_page.dart';

class DeviceController extends GetxController {
  var connectDeviceMap = Rx<Map<String, StreamSubscription<ConnectionStateUpdate>>>({});
  updateConnectedDeviceMap(Map<String, StreamSubscription<ConnectionStateUpdate>> newMap) {
    connectDeviceMap.value = newMap;
    connectDeviceMap.refresh();
  }
}
